package com.yyysj.system.service;

import com.yyysj.common.core.domain.Result;
import com.yyysj.common.core.domain.TableDataInfo;
import com.yyysj.system.domain.dto.ExamAddDTO;
import com.yyysj.system.domain.dto.ExamEditDTO;
import com.yyysj.system.domain.dto.ExamQueryDTO;
import com.yyysj.system.domain.dto.ExamQuestionAddDTO;
import com.yyysj.system.domain.vo.ExamDetailVO;

public interface IExamService {
    TableDataInfo list(ExamQueryDTO examQueryDTO);

    Result<String> add(ExamAddDTO examAddDTO);

    Result<?> questionAdd(ExamQuestionAddDTO examQuestionAddDTO);

    ExamDetailVO detail(Long examId);

    int edit(ExamEditDTO examEditDTO);

    int questionDelete(Long examId, Long questionId);

    int delete(Long examId);

    int publish(Long examId);

    int cancelPublish(Long examId);
}
